<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>for 循环</title>
<script>
	window.onload = function(){
		var movearr = ["ab","b",1,2,"a","b","c",1,2,"d"];
		var newarr = [];
		console.log("之前的数组 " + movearr);
		
		for(var i=0; i<movearr.length; i++)
		{
			if( movearr.indexOf(movearr[i]) == i)
			{
				newarr.push(movearr[i]);
			}
		}
		console.log("之后的数组 " +newarr);
	}
</script>
</head>
<body>
	
</body>
</html>
